object ScalaDataConvertDemo02 {
  def main(args: Array[String]): Unit ={
    val num1: Int = 10 * 3.5.toInt + 6 * 1.5.toInt
    println("num1 = " + num1)//36
    var num2: Int = (10 * 3.5 + 6 * 1.5).toInt
    println("num2 = " + num2)//44

    var char1: Char = 1
    var num3 = 1
    //var char2: char = num3.报错
    //因为char类型可以保存 Int的常量值、但不能保存int的变量值，需要强转
  }

}
